<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@	taglib	uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
	<title>用户登录</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="css/user_login.css">
	<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/simpleCart.min.js"></script>
</head>
<body>


<!-- 头部 -->


	
	
	<!--account-->
	<div class="account">
    <div class="container">
        <div class="register">
            <c:if test="${!empty msg }">
                <div class="alert alert-success">${msg }</div>
            </c:if>

            <c:if test="${!empty failMsg }">
                <div class="alert alert-danger">${failMsg }</div>    
            </c:if>
            <div class="register-content">
                <!-- QR Code Section -->
                <div class="qr-code-section">
                    <h4>扫码登录</h4>
                    <img src="images/moma.png" alt="扫码登录二维码" width="150">
                </div>

                <!-- User Login Form -->
                <form action="${pageContext.request.contextPath }/user_login" method="post"> 
                    <div class="register-top-grid">
                        <h3>用户登录</h3>
                        <div class="input">
                            <span>用户名/邮箱<label style="color:red;">*</label></span>
                            <input type="text" name="ue" placeholder="请输入用户名" required="required"> 
                        </div>
                        <div class="input">
                            <span>密码 <label style="color:red;">*</label></span>
                            <input type="password" name="password" placeholder="请输入密码" required="required"> 
                        </div>
                        <div class="clearfix"> </div>
                    </div>
                    <div class="register-but text-center">
                       <input type="submit" value="提交">
                       <div class="clearfix"> </div>
                    </div>
                </form>
            </div>

            <!-- Other Login Options -->
            <div class="other-login text-center">
                <h4>其他登录方式</h4>
                <div class="login-options">
                    <button onclick="loginWithQQ()" class="btn btn-primary">QQ登录</button>
                    <button onclick="loginWithWeChat()" class="btn btn-success">微信登录</button>
                </div>
            </div>
        </div>
    </div>
    <div class="register-but text-center">
    <button type="button" onclick="history.back();" class="btn btn-secondary">返回</button>
    <div class="clearfix"></div>
</div>
</div>


	<!--//account-->
<!-- 尾部 -->
<jsp:include page="/footer.jsp"></jsp:include>



	
</body>
</html>